package com.wangyg.flourfactory.outer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created by wangyg6 on 2019/5/21 21:21.
 * 相较于fallback指定的类，fallbackfactory指定的类可以获取到异常等信息
 * 且优先级 fallback>fallbackfactory
 */
@FeignClient(value = "breadStore", serviceId = "breadStore", path = "/bread_store", fallbackFactory = DefaultFallbackFactory.class)
public interface ICallBreadStore {
	@GetMapping("/test/hystrix")
	public String getHystrixMsg();
}
